import java.util.Scanner;

public class Lab04 {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.print("> ");
		String line = input.nextLine();

		input.close();

		int currentPosition = 0;
		int total = 0;
		String numberText;
int nextSpacePosition = line.indexOf(' ', currentPosition);
		while (nextSpacePosition != -1);
		{
			

			if (nextSpacePosition == -1) {
				numberText = line.substring(currentPosition, line.length());
				
			} else {
				numberText = line.substring(currentPosition, nextSpacePosition);
			}

			int numberInt = Integer.parseInt(numberText);
			total = +numberInt;
			currentPosition = nextSpacePosition + 1;

		}
		System.out.print("The sum is " + total);
	}

}
